// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'

import App from './App'
import router from './router'
import {Tab,Tabs} from 'vant';

import 'amfe-flexible'
import storage from 'store'
import axios from 'axios';
import { Swipe, SwipeItem } from 'vant';
import { Icon } from 'vant';
import { Tabbar, TabbarItem } from 'vant';
import Video from 'video.js'
import menuBar from './components/menuBar/index'
import 'video.js/dist/video-js.css'
import { Search } from 'vant';
import { Circle } from 'vant';
import { Divider } from 'vant';
import { NumberKeyboard } from 'vant';
import { Toast } from 'vant';
import {Dialog} from 'vant'
import api from './api'
import {store} from './store'
import VideoPlayer from 'vue-video-player'
import { Slider } from 'vant';
import Lyric from 'lyric-parser';
Vue.use(Slider);
require('video.js/dist/video-js.css')
require('vue-video-player/src/custom-theme.css');
Vue.use(VideoPlayer)
Vue.use(Dialog);
Vue.use(menuBar);
Vue.use(Toast);
Vue.use(NumberKeyboard);
Vue.use(Divider);


Vue.use(Search);
Vue.use(Circle);
Vue.prototype.$api=api;
Vue.prototype.$video = Video;
Vue.prototype.$storage=storage;

Vue.use(Tabbar).use(TabbarItem);
Vue.use(Icon);
Vue.use(Swipe).use(SwipeItem);
Vue.use(Tab).use(Tabs);
Vue.prototype.$http = axios;

Vue.prototype.$lyric=Lyric;
Vue.config.productionTip = false;
axios.defaults.withCredentials=true;
/* eslint-disable no-new */



new Vue({
  el: '#app',
  router:router,
  store,
  components:{App},
  template:`<App/>`,
});
